<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>捐赠明细</title>
    <link rel="stylesheet" type="text/css" href="__CSS__api.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__aui.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__common.css" />

    <style>
        .aui-bar-nav .aui-iconfont {
            position: relative;
            font-family: "aui_iconfont" !important;
            font-size: 0.75rem;
            color: #E73C5C;
            font-style: normal;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            height: 2.4rem;

        }

        .aui-bar-nav {
            background-color: #fff;
        }

        .aui-icon-tu {
            height: 2.4rem;
            width: 49px;
            background: url('__IMG__left.png') no-repeat 0.5rem center;
            background-size: 22px 22px;
        }

        .aui-bar-nav .aui-pull-right {
            padding-right: 0.75rem;
        }

        .aui-bar-nav .aui-title {
            font-size: 0.9rem;
            color: #333333;
            font-weight: 500;
        }
        body{
            background-color: #F5F5F5;
        }
        .warrp{
            padding: 0 0.75rem 0 0.8rem;
            background-color: #FFFFFF;
        }
        .box{
            width: 100%;
            height: 3.25rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .title{
            font-size:0.8rem;
            line-height:0.6rem;
            color: #999999;
        }
        .content{
            font-size:0.8rem;
            line-height:0.6rem;
            color: #333333;
        }
        .head{
            width: 100%;
            background-color: #FFFFFF;
            padding: 2.25rem 35% 3.1rem 35%;

        }
        .big{
            width: 100%;
            height: 1.35rem;
            font-size:1.5rem;
            line-height:0.6rem;
            color: #333333;
            font-weight: bold;
            text-align: center;
        }
        .small{
            font-size:0.7rem;
            color: #999999;
            line-height:0.6rem;
            margin-top: 0.3rem;
            text-align: center;
        }
    </style>
</head>

<body>
<div class="l_box"  id="loading2"><img src="__IMG__loading.gif" alt="" id="loading"></div>

<header class="aui-bar aui-bar-nav underLine" style="padding-top:25px;" id="header">
    <a class="aui-pull-left" tapmode="active" onclick="history.go(-1);"> <span class="aui-iconfont aui-icon-tu"> </span> </a>
    <div class="aui-title" style="font-size0.8rem;font-weight:bold">捐赠明细</div>
</header>
<div class="head">
    <div class="big" id="donate_money">

    </div>
    <div class="small">
        捐赠金额
    </div>
</div>

<div class="warrp">
    <div class="box underLine">
        <div class="title">
            捐赠项目
        </div>
        <div class="content" id="activity_name">

        </div>
    </div>
    <div class="box underLine">
        <div class="title">
            时间
        </div>
        <div class="content" id="pay_time">
        </div>
    </div>
    <div class="box underLine">
        <div class="title">
            支付方式
        </div>
        <div class="content" id="donate_type">

        </div>
    </div>
    <div class="box">
        <div class="title">
            捐赠单号
        </div>
        <div class="content" id="donate_number">

        </div>
    </div>
</div>

<div class="toast-wrap">
    <span class="toast-msg"></span>
</div>
</body>
<script type="text/javascript" src="__JS__api.js"></script>
<script type="text/javascript" src="__JS__tt.js"></script>
<script type="text/javascript" src="__JS__jquery.min.js"></script>
<script type="text/javascript" src="__JS__common.js"></script>

<script type="text/javascript">
    var id=getUrlParam(location.href);
    getdata();
    function getdata() {
        console.log()
        $.ajax({
            url:'{:url("My/donateInfo")}',
            data:'donate_id='+id,
            type:'POST',
            dataType:'JSON',
            success: function(data){
                loaddingClose();
                if (data.status==200) {
                    $('#activity_name').html(data.data.activity_name);
                    $('#donate_money').html(data.data.donate_money+'元');
                    $('#donate_number').html(data.data.donate_number);
                    $('#pay_time').html(data.data.pay_time);
                    if (data.data.donate_type==1) {
                        $('#donate_type').html('微信');
                    }else if(data.data.donate_type==2){
                        $('#donate_type').html('支付宝');
                    }else {
                        $('#donate_type').html('其他');
                    }

                }else {
                    toast(data.msg);
                }

            },
            error: function(xhr, type){
                loaddingClose();
                toast('无网络或连接超时，请重试！')
                // alert('Ajax error!');
                // 即使加载出错，也得重置

            }
        });

    }
</script>

</html>
